<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
<html>
  <head>
  <base target="_self"/>
  
  <title>数据分析页面</title>
  	<meta http-equiv="X-UA-Compatible" content="IE=7" />
  	<%@ include file="../jslib/jquerylib.jsp" %>
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
    <script type="text/javascript" src="<%=path %>/jqGrid/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<%=path %>/jslib/jquery.validate.min.js"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js" defer="defer"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/additional-methods.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/demo.css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
    <c:if test="${requestScope.message!=null}">
		<script type="text/javascript">
 	 		     alert('<c:out value="${requestScope.message}"></c:out>');
 	 		     window.close();
 		</script>
	</c:if>
	<style type="text/css">
   		html{
		    overflow-x: hidden;
		}  		
   </style>
    <script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    $().ready(function() {
    
	});

	function countlen(textarea){
	    if (textarea.value.length> 250){
	        alert("最多为250个字符,字符输入超出限制!");
	        textarea.value=textarea.value.substring(0,250);
	    }
	    return true;
	}
	
	function analysisData(){
		var hengzhou = document.getElementById("hengzhou").value;
		var zongzhou = document.getElementById("zongzhou").value;
		var fenzu = document.getElementById("fenzu").value;
		var juji = document.getElementById("juji").value;
		var biaozhunz = document.getElementById("biaozhunz").value;
		var ids = document.getElementById("ids").value;
		if (hengzhou=='-1'){
			alert('横轴不能为空！');
			return;
		}
		if (zongzhou=='-1'){
			alert('纵轴不能为空！');
			return;
		}
		document.getElementById("analysispage").src="<%=request.getContextPath() %>/auto!gotoAnalysisPage.action?ids="+ids+"&filemodeid=${filemodeid}&hengzhou="+hengzhou+"&zongzhou="+zongzhou+"&fenzu="+fenzu+"&juji="+juji+"&biaozhunz="+biaozhunz;
	}
	
	
</script>

 <style type="text/css">
	body{
		background:#ffffff; background-image:url(images/);
	}
	.tab_input{border: 1px solid #999;padding: 5px;width: 250px;-moz-border-radius: 3px;border-radius: 3px;margin-bottom: 5px;color: #666;background: url(../images/input_bg.gif) repeat-x top;}
</style>
</head>
<body >
  	<form action="" id="pageFrom" name="pageFrom" method="post" class="easyui-form" data-options="novalidate:true">
		<table width="680" border="0" align="center" class="formTableNew">
			<tr>
				<td style="text-align:right;">横轴：</td>
				<td><select id="hengzhou" name="hengzhou" class='easyui-validatebox' style="border: 1px solid #999;height:25px;width:150px;height:30px;" >
	 			      ${hengzhou}
 			    	</select>
 			    </td>
 			    
 			    <td style="text-align:right;">纵轴：</td>
				<td><select id="zongzhou" name="zongzhou" class='easyui-validatebox' style="border: 1px solid #999;height:25px;width:150px;height:30px;" >
	 			      ${zongzhou}
 			    	</select>
 			    </td>
 			    
 			    <td style="text-align:right;">分组：</td>
				<td><select id="fenzu" name="fenzu" class='easyui-validatebox' style="border: 1px solid #999;height:25px;width:150px;height:30px;" >
	 			      ${hengzhou}
 			    	</select>
 			    </td>
			</tr>
			<tr>
				<td style="text-align:right;">聚集：</td>
				<td><select id="juji" name="juji" class='easyui-validatebox' style="border: 1px solid #999;height:25px;width:150px;height:30px;" >
	 			      <option value="pingjun" >平均值</option>
	 			      <option value="qiuhe" >求和</option>
	 			      <option value="jishu" >计数</option>
 			    	</select>
 			    </td>
 			    
 			    <td style="text-align:right;">标准值：</td>
				<td>
					<input  type="text"  id="biaozhunz"  name="biaozhunz" style="width: 150px;"  value="" />
 			    </td>
 			    
 			    <td colspan='2'>
 			    	<input id="btnanalysis" type='button' value='分 析' onclick='analysisData()' class='button_b' />
 			    </td>
			</tr>
		</table>
		<div>
			<iframe id='analysispage' width='1000' height='450' frameborder='0'></iframe>
		</div>
		<input type='hidden' name='ids' id='ids' value='${ids}'>
	</form>
  </body>
</html>
